package com.mingqijia.gassafety.webserver.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author li.shiying
 * @since 2023.3.24
 */
@Data
@ApiModel(value = "接收器 通讯记录")
public class ReceiverValveLogResponse {

    @ApiModelProperty("平台接收时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date time;

    @ApiModelProperty("接收器状态：离线、正常")
    private String receiverStatus;

    @ApiModelProperty("电池状态：正常、电池欠压")
    private String batteryStatus;

    @ApiModelProperty("电磁阀阀门状态:阀门开启、阀门关闭")
    private String valveStatus;

    @ApiModelProperty("阀门是否故障:否、故障原因")
    private String brokenStatus;
}
